﻿<%
function $(object) {
    var _object = object || 'system';
    var _level = String(Request.serverVariables('SCRIPT_NAME')).replace(/[^\/]/g, '').length - 1;
    var _path = 'components/';
    for (var _index = 0; _index < _level; _index++) {
        _path = '../' + _path;
    }
    return GetObject('script:' + Server.MapPath(_path + _object + '.asp'));
}
%>